<?php
/**
 * test2
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TEST</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(function(){// dom元素加载完毕
	$('.ccx').click(function(){ //获取id为bbq的元素,给它添加onclick事件
		var bbq = $(this).parent().parent().find("input");
		alert(  $(bbq).val() );
	});

$('.bbq').click(function(){ //获取id为bbq的元素,给它添加onclick事件
	var bbq = $(this).parent();
	alert(  $(bbq).html() );
});
});
</script>

</head>
<body>

<table width="341" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="33" height="25" align="center"><input type="checkbox" name="checkbox2" value="checkboxdasdas" /></td>
      <td width="117" align="center">50000K币</td>
      <td width="62" align="center">1</td>
      <td width="82" align="center">09-07-15</td>
      <td width="47" align="center" class="bbq blue2"><a href="#" class="ccx">成交</a></td>
    </tr>

  
    <tr>
      <td width="33" height="25" align="center" bgcolor="#3676B4"><input type="checkbox" name="checkbox24" value="checkbox" /></td>
      <td width="117" align="center" bgcolor="#3676B4">50000K币</td>
      <td width="62" align="center" bgcolor="#3676B4">1</td>
      <td width="82" align="center" bgcolor="#3676B4">09-07-15</td>
      <td width="47" align="center" bgcolor="#3676B4" class="bbq blue2"><a href="#" class="ccx">成交</a></td>
    </tr>
  
    <tr>
      <td width="33" height="25" align="center"><input type="checkbox" name="checkbox25" value="checkbox" /></td>
      <td width="117" align="center">50000K币</td>
      <td width="62" align="center">1</td>
      <td width="82" align="center">09-07-15</td>
      <td width="47" align="center" class="bbq"><a href="#" class="ccx">未成交</a></td>
    </tr>
    
    <tr>
      <td width="33" height="25" align="center" bgcolor="#3676B4"><input type="checkbox" name="checkbox242" value="checkbox" /></td>
      <td width="117" align="center" bgcolor="#3676B4">50000K币</td>
      <td width="62" align="center" bgcolor="#3676B4">1</td>
      <td width="82" align="center" bgcolor="#3676B4">09-07-15</td>
      <td width="47" align="center" bgcolor="#3676B4" class="bbq"><a href="#" class="ccx">未成交</a></td>
    </tr>
    
    <tr>
      <td width="33" height="25" align="center"><input type="checkbox" name="checkbox26" value="checkbox" /></td>
      <td width="117" align="center">50000K币</td>
      <td width="62" align="center">1</td>
      <td width="82" align="center">09-07-15</td>
      <td width="47" align="center" class="bbq"><a href="#" class="ccx">未成交</a></td>
    </tr>
    
    <tr>
      <td width="33" height="25" align="center" bgcolor="#3676B4"><input type="checkbox" name="checkbox243" value="checkbox" /></td>
      <td width="117" align="center" bgcolor="#3676B4">50000K币</td>
      <td width="62" align="center" bgcolor="#3676B4">1</td>
      <td width="82" align="center" bgcolor="#3676B4">09-07-15</td>
      <td width="47" align="center" bgcolor="#3676B4" class="bbq blue2"><a href="#" class="ccx">成交</a></td>
    </tr>

    <tr>
      <td width="33" height="25" align="center"><input type="checkbox" name="checkbox2" value="checkbox" /></td>
      <td width="117" align="center">50000K币</td>
      <td width="62" align="center">1</td>
      <td width="82" align="center">09-07-15</td>
      <td width="47" align="center" class="bbq blue2"><a href="#" class="ccx">成交</a></td>
    </tr>

    <tr>
      <td width="33" height="25" align="center" bgcolor="#3676B4"><input type="checkbox" name="checkbox24" value="checkbox" /></td>
      <td width="117" align="center" bgcolor="#3676B4">50000K币</td>
      <td width="62" align="center" bgcolor="#3676B4">1</td>
      <td width="82" align="center" bgcolor="#3676B4">09-07-15</td>
      <td width="47" align="center" bgcolor="#3676B4" class="bbq blue2"><a href="#" class="ccx">成交</a></td>
    </tr>

    <tr>
      <td width="33" height="25" align="center"><input type="checkbox" name="checkbox25" value="checkbox" /></td>
      <td width="117" align="center">50000K币</td>
      <td width="62" align="center">1</td>
      <td width="82" align="center">09-07-15</td>
      <td width="47" align="center" class="bbq blue2"><a href="#" class="ccx">成交</a></td>
    </tr>

    <tr>
      <td width="33" height="25" align="center" bgcolor="#3676B4"><input type="checkbox" name="checkbox242" value="checkbox" /></td>
      <td width="117" align="center" bgcolor="#3676B4">50000K币</td>
      <td width="62" align="center" bgcolor="#3676B4">1</td>
      <td width="82" align="center" bgcolor="#3676B4">09-07-15</td>
      <td width="47" align="center" bgcolor="#3676B4" class="bbq blue2"><a href="#" class="ccx">成交</a></td>
    </tr>

    <tr>
      <td width="33" height="25" align="center"><input type="checkbox" name="checkbox26" value="checkbox" /></td>
      <td width="117" align="center">50000K币</td>
      <td width="62" align="center">1</td>
      <td width="82" align="center">09-07-15</td>
      <td width="47" align="center" class="bbq blue2"><a href="#" class="ccx">成交</a></td>
    </tr>

    <tr>
      <td width="33" height="25" align="center" bgcolor="#3676B4"><input type="checkbox" name="checkbox243" value="checkbox" /></td>
      <td width="117" align="center" bgcolor="#3676B4">50000K币</td>
      <td width="62" align="center" bgcolor="#3676B4">1</td>
      <td width="82" align="center" bgcolor="#3676B4">09-07-15</td>
      <td width="47" align="center" bgcolor="#3676B4" class="bbq blue2"><a href="#" class="ccx">成交</a></td>
    </tr>
    </table>


</body></html>